Skip to content

fix: Address most compile warnings#3858

Open
jcs090218 wants to merge 3 commits intoclojure-emacs:masterfrom
jcs-PR:fix/warnings
Open

fix: Address most compile warnings#3858
jcs090218 wants to merge 3 commits intoclojure-emacs:masterfrom
jcs-PR:fix/warnings

Conversation

@jcs090218
Copy link
Contributor

Fix most compile warnings.


Before submitting the PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):

  • The commits are consistent with our contribution guidelines
  • You've added tests (if possible) to cover your change(s)
  • All tests are passing (eldev test)
  • All code passes the linter (eldev lint) which is based on elisp-lint and includes
  • You've updated the changelog (if adding/changing user-visible functionality)
  • You've updated the user manual (if adding/changing user-visible functionality)

Thanks!

If you're just starting out to hack on CIDER you might find this section of its
manual
extremely useful.

@bbatsov
Copy link
Member

bbatsov commented Jan 30, 2026

Seems that some tests are failing in the CI.

@jcs090218
Copy link
Contributor Author

The warnings aren’t fully addressed, but it’s a good start for now. 🤔

(defun cider--tooling-file-p (file-name)
"Return t if FILE-NAME is not a 'real' source file.
Currently, only check if the relative file name starts with 'form-init'
"Return t if FILE-NAME is not a `real' source file.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better not to have quotes here at all.


(defun cider-docview-wrap-text (buffer)
"For text in BUFFER not propertized as 'block', apply line wrap."
"For text in BUFFER not propertized as `block', apply line wrap."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better remove the quotes here IMO.

'qualified ;=> Vars are fully-qualified in the expansion
'none ;=> Vars are displayed without namespace qualification
'tidy ;=> Vars that are :refer-ed or defined in the current namespace are
`qualified ;=> Vars are fully-qualified in the expansion
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the use of different quotes here?

As it stands Emacs fires these events on <mouse-8> and <mouse-9> on 'x' and
'w32'systems while on macOS it presents them on <mouse-4> and <mouse-5>.")
As it stands Emacs fires these events on <mouse-8> and <mouse-9> on `x' and
`w32'systems while on macOS it presents them on <mouse-4> and <mouse-5>.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably we can remove the quotes here completely, as the proposed quoting definitely seems incorrect given it was referring to the value of window-system.


As it stands Emacs fires these events on <mouse-8> and <mouse-9> on 'x' and
'w32'systems while on macOS it presents them on <mouse-4> and <mouse-5>.")
As it stands Emacs fires these events on <mouse-8> and <mouse-9> on `x' and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd drop the quotes and make X uppercase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants